<template>
  <div class="list-box">
    <!-- @load="onLoad" -->
    <!-- 没有更多了 -->
    <van-list v-model="loading" :finished="finished" finished-text="">
      <slot class="list-main-box" name="main"></slot>
    </van-list>
  </div>
</template>
<script>
export default {
  data() {
    return {
      loading: false, //是否处于加载状态，加载过程中不触发load事件
      finished: true //是否已加载完成，加载完成后不再触发load事件
    };
  }
};
</script>

<style scoped>
.list-box,
.list-main-box {
  width: 100%;
  height: auto;
  text-align: left;
}
</style>
